import request from '@/utils/request'

// 查询网关故障列表
export function listFaultGateway(query) {
  return request({
    url: '/app/faultGateway/list',
    method: 'get',
    params: query
  })
}

// 查询网关故障详细
export function getFaultGateway(faultId) {
  return request({
    url: '/app/faultGateway/' + faultId,
    method: 'get'
  })
}

// 新增网关故障
export function addFaultGateway(data) {
  return request({
    url: '/app/faultGateway',
    method: 'post',
    data: data
  })
}

// 修改网关故障
export function updateFaultGateway(data) {
  return request({
    url: '/app/faultGateway',
    method: 'put',
    data: data
  })
}

// 删除网关故障
export function delFaultGateway(faultId) {
  return request({
    url: '/app/faultGateway/' + faultId,
    method: 'delete'
  })
}
